package top.yekongle.excel.service.impl;

import org.springframework.stereotype.Service;

import com.google.common.collect.Lists;

import top.yekongle.excel.service.UserService;
import top.yekongle.excel.util.DateUtil;
import top.yekongle.excel.entity.User;

import java.util.Date;
import java.util.List;


/** 
* <pre>
* @Description: 
* @Author: Yekongle 
* @Date: Apr 1, 2020
* </pre> 
*/
@Service
public class UserServiceImpl implements UserService {

	@Override
	public List<User> findAll() {
		List<User> listAll = Lists.newArrayList();
		List<User> list = Lists.newArrayList();
		User user = new User();
		user.setId(10);
		user.setName("张三");
		user.setSex("男");
		user.setBirthday(DateUtil.parseDate("2020-04-01"));
		User user1 = new User();
		user1.setId(20);
		user1.setName("李四");
		user1.setSex("男");
		user1.setBirthday(DateUtil.parseDate("2020-04-02"));
		User user2 = new User();
		user2.setId(20);
		user2.setName("王五");
		user2.setSex("男");
		user2.setBirthday(DateUtil.parseDate("2020-04-03"));
		list.add(user);
		list.add(user1);
		list.add(user2);
		listAll.addAll(list);
		return listAll;
	}

}
